import os
f = open("a.txt",'w')
for i in range(10):
    f.write("aaaaaaaaaaaa%d\n"%i)
f.close()
os.system("notepad a.txt")